import type { RouteConfig } from '../../typings/router';
import logController from '../controllers/log';

/**
 * 日志模块路由
 */
const logRoutes: RouteConfig[] = [
    {
        method: 'get',
        name: 'logRetrieve',
        path: '/log/retrieve',
        middlewares: [logController.retrieveAction],
    },
    {
        method: 'delete',
        name: 'logClear',
        path: '/log/clear',
        middlewares: [logController.clearAction],
    },
];

export default logRoutes;
